
package com.ebay.soap.eBLBaseComponents;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for ReasonHideFromSearchCodeType.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="ReasonHideFromSearchCodeType">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}token">
 *     &lt;enumeration value="DuplicateListing"/>
 *     &lt;enumeration value="OutOfStock"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "ReasonHideFromSearchCodeType")
@XmlEnum
public enum ReasonHideFromSearchCodeType {


    /**
     * 
     * 						This value indicates that the auction listing is being hidden from search on the eBay site because the 
     * 						listing has been determined by eBay to be a duplicate listing with zero bids.
     * 						<br/><br/>
     * 						This enumeration is associated with eBay Duplicate Listings Policy, which has taken 
     * 						effect on the US, CA, CA-FR, and eBay Motors (Parts and Accessories only) sites. 
     * 						Event Tickets, Real Estate, and Motor Vehicle categories are excluded from this 
     * 						policy. For more information, read 
     * 				<a href="http://pages.ebay.com/help/policies/listing-multi.html">eBay's Duplicate Listings Policy</a> help page.
     * 					
     * 
     */
    @XmlEnumValue("DuplicateListing")
    DUPLICATE_LISTING("DuplicateListing"),

    /**
     * 
     * 						This value indicates that the listing is hidden from search because the quantity is zero. However, the lising is still alive and will
     * 						and will reappear in the search results when the quantity is set set to something greater than zero. For more information,
     * 						see <a href="http://developer.ebay.com/Devzone/XML/docs/Reference/eBay/types/ItemType.html#OutOfStockControl">OutOfStockControl</a>.
     * 					
     * 
     */
    @XmlEnumValue("OutOfStock")
    OUT_OF_STOCK("OutOfStock");
    private final String value;

    ReasonHideFromSearchCodeType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static ReasonHideFromSearchCodeType fromValue(String v) {
        for (ReasonHideFromSearchCodeType c: ReasonHideFromSearchCodeType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
